/**
 * 安卓白金英雄坛制作组 <br>
 * 文件名：IInput.java <br>
 * 创建时间：2013-5-19 下午6:58:39 <br>
 * 所属项目：GmudEX <br>
 * @author 12548 <br>
 */
package lostland.gmud.exv2.blgframework;

import java.util.List;

/**
 * 类名：IInput <br>
 * 说明：
 *
 * @author 12548
 */
public interface IInput {

	public static class KeyEvent {
		public static final int KEY_DOWN = 0;
		public static final int KEY_UP = 1;

		public int type;
		public int keyCode;
		public char keyChar;
	}

	public static class TouchEvent {
		public static final int TOUCH_DOWN = 0;
		public static final int TOUCH_UP = 1;
		public static final int TOUCH_DRAGGED = 2;

		public int type;
		public int x, y;
		public int pointer;
	}

	public boolean isKeyPressed(int keyCode);

	public boolean isTouchDown(int pointer);

	public int getTouchX(int pointer);

	public int getTouchY(int pointer);

	public float getAccelX();

	public float getAccelY();

	public float getAccelZ();


	public List<KeyEvent> getKeyEvents();

//	public List<TouchEvent> getTouchEvents();
}
